﻿using System;
using System.Web.UI;
using VPLink2013.Framework;

namespace VPLink2013.Webcontrols
{
    public class AccesVP: WebcontrolVPLink
    {
        protected override void Render(HtmlTextWriter writer)
        {
            try
            {
                Template = "webcontrol AccesVP";
                string strHtml = string.Format( @"<a href=""{0}"" target=""_blank""><b>Accès vente-privee.com</b></a>", siteUrl);
                sbHtml.Append(strHtml);
                base.Render(writer);
            }
            catch (Exception e)
            {
                ContextTrace.AddTrace(string.Format("Exception lors de l'affichage Acces VP : {0}", e.Message));
                ContextTrace.AddTrace(string.Format("{0}", e.StackTrace));
            }
        }
    }
}
